package cn.easybuy.entity;

import java.util.List;

public class OrderShow {
    private int id;
    private String name;               // 商品名称
    private String fileName;           // 商品图标
    private int quantity;              // 商品数量
    private float cost;                // 单品总价

    /*
        c:foreach  items=${orderlist} var = "order"
            <c:foreachr items=${order.productList} var="product"
                asdkhasdkas
     */

    public OrderShow() {
    }

    public OrderShow(int id, String name, String fileName, int quantity, float cost) {
        this.id = id;
        this.name = name;
        this.fileName = fileName;
        this.quantity = quantity;
        this.cost = cost;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public float getCost() {
        return cost;
    }

    public void setCost(float cost) {
        this.cost = cost;
    }

    @Override
    public String toString() {
        return "OrderShow{" +
                "name='" + name + '\'' +
                ", fileName='" + fileName + '\'' +
                ", quantity=" + quantity +
                ", cost=" + cost +
                '}';
    }
}
